

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



import Mondes.CarteSimple;
import ia_0.Time;
import ia_0.World;
import java.util.Timer;
import java.util.TimerTask;

/**
 *
 * @author jderenty
 */
public class Main {

        public static World w;
        public static Timer ti;
        public static TimerTask task;
        public static TestDisplay td = new TestDisplay();

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        w=new CarteSimple();


        //td = new TestDisplay();
        Main.task = new TimerTask() {

            @Override
            public void run() {
                w.iterate();
                Main.td.initWorld();
            }
        };

        Main.ti = new Timer();
        Main.ti.scheduleAtFixedRate(Main.task, 0, Time.it);



        System.out.println("Affichage carte");


    }


}
